﻿@model Ornament.MVCWebFrame.Areas.MemberShips.Models.PermissionWizard
@*
如果是在选中Resource的Step，这个有PartyView负责
*@
@if (!this.Model.IsChoiceResource)
{
    <input name="ResourceId" value="@this.Model.ResourceId" id="ResourceId" type="hidden" />
}
@if (!this.Model.IsChoiceResourceType)
{
    @Html.HiddenFor(s => s.DescriptionResourceName)
}
@Html.Hidden("PermissionId", Model.PermissionId)

<input type="hidden" name="CurrentStep"  value="@this.Model.CurrentStep" />
<script type="text/javascript">
    $(document).ready(function () {
        $('#cancel').button().click(function () {
            if (confirm("选择离开会失去当前数据.点击'确认'退出")) {
                document.location = "@Url.Action("Index")";
            }
        });
       
    })
</script>
